package com.mef.smsplat.service;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mef.smsplat.dao.AdminInfoDao;
import com.mef.smsplat.dao.RoleInfoDao;
import com.mef.smsplat.dao.SmsOpraInfoDao;
import com.mef.smsplat.dao.base.DataGridModel;
import com.mef.smsplat.dao.base.EntityDao;
import com.mef.smsplat.dao.base.Page;
import com.mef.smsplat.domain.AdminInfoDomain;
import com.mef.smsplat.domain.RoleInfoDomain;
import com.mef.smsplat.domain.SmsHistoryInfoDomain;
import com.mef.smsplat.domain.SmsOpraInfoDomain;
import com.mef.smsplat.service.base.BaseService;

@Service
@Transactional
public class SmsOpraInfoService extends BaseService<SmsOpraInfoDomain, String> {
	
	private SmsOpraInfoDao smsOpraInfoDao;

	public void setSmsOpraInfoDao(SmsOpraInfoDao smsOpraInfoDao) {
		this.smsOpraInfoDao = smsOpraInfoDao;
	}

	@Override
	public EntityDao getEntityDao() {
		return this.smsOpraInfoDao;
	}
	
	/**
	 * 根据短息ID查询历史责任
	 * @param smsHistoryId
	 * @return
	 */
	@Transactional(readOnly=true)
	public List<SmsOpraInfoDomain> query(String smsHistoryId){
		return smsOpraInfoDao.query(smsHistoryId);
	}
}
